enum PrintColor {
    RED, GREEN, YELLOW;
}
public class CommonUtil {
    public void info(String message) {
        System.out.printf("\033[1;93;45m %s \033[m\n", message);
    }
    private String concat(String message, String colorPrefix) {
        return String.format("\033[%sm %s \033[0m", colorPrefix, message);
    }
    public String render(String message, PrintColor color) {
        String resultMessage = message;
        switch(color) {
            case RED:
                resultMessage = this.concat(message, "0;31");
                break;
            case GREEN:
                resultMessage = this.concat(message, "0;32");
                break;
            case YELLOW:
                resultMessage = this.concat(message, "0;33");
                break;
            default:
                ;
        }
        return resultMessage;
    }
}